package com.sky.service;

import com.sky.dto.CustomerDTO;
import com.sky.dto.CustomerLoginDTO;
import com.sky.dto.CustomerPageQueryDTO;
import com.sky.entity.Customer;
import com.sky.result.PageResult;

public interface CustomerService {

    /**
     * 员工登录
     * @param customerLoginDTO
     * @return
     */
    Customer login(CustomerLoginDTO customerLoginDTO);

    /**
     * 新增员工
     * @param customerDTO
     */
    void save(CustomerDTO customerDTO);

    /**
     * 分页查询
     * @param customerPageQueryDTO
     * @return
     */
    PageResult pageQuery(CustomerPageQueryDTO customerPageQueryDTO);

    /**
     * 启用，禁用员工账号
     * @param status
     * @param id
     */
    void startOrStop(Integer status, Long id);

    /**
     * 根据ID查询员工信息
     * @param id
     * @return
     */
    Customer getById(Long id);

    /**
     * 编辑员工信息
     * @param customerDTO
     */
    void update(CustomerDTO customerDTO);
}
